/*
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-10-21 08:22:00
 * @LastEditors: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @LastEditTime: 2023-11-04 08:22:04
 * @FilePath: \go2023\cmd\admin\main.go
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package main

import (
	"sxk.games/m/v2/admin/serverx"
	"sxk.games/m/v2/core/entity"
	"sxk.games/m/v2/core/utils/data"
)

func init() {

	data.OpenSqlite("./data/data.sqlite")

	data.GetDb().AutoMigrate(&entity.Site{}, &entity.User{})

}

func main() {

	serverx.LoadRouter()

}
